package com.leadingsoft.pwxk.converter;

import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.TableResultConverter;
import com.leadingsoft.pwxk.dto.FileDetailDto;
import com.leadingsoft.pwxk.model.FileDetail;
/**
 * 
 * @author ysh
 *
 */
@Component
public class FileDetailTbaleConverter implements TableResultConverter<FileDetail, FileDetailDto>{
	
	@Override
	public FileDetailDto toTableResultDto(FileDetail model) {
		FileDetailDto dto = new FileDetailDto();
		dto.setConname(model.getConname());
		dto.setId(model.getId());
		dto.setNewfilename(model.getNewfilename());
		dto.setPath(model.getPath());
		return dto;
	}

}
